package forum.klanmichalakow.org;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;

public class TC_Loggin_Loggout extends Forum {
	WebDriver driver = new FirefoxDriver();

	@Test(groups = { "forum" })
	public void loginLogout() {
		System.out.println("The test started ....");

		Forum.login(driver);
		Forum.fullSize(driver);
		Forum.wait10sec(driver);
		Forum.logout(driver);
		Forum.wait10sec(driver);

	}

	@BeforeTest
	public void beforeTest() {
		System.out.println("Before test ....loginLogout");
	}

	@AfterTest
	public void afterTest() {
		System.out.println("After test ....loginLogout");
		Forum.close(driver);
	}

}
